﻿namespace ETask.Api.Models
{

    /// <summary>
    /// 用户实体类
    /// </summary>
    public class User : BaseEntity
    {
        /// <summary>
        /// 姓名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 账号
        /// </summary>
        public string Account { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        public string Email { get; set; }

        public string Phone { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 性别 0男 1女生
        /// </summary>
        public int Sex { get; set; } = 0;

        /// <summary>
        /// 是否管理员
        /// </summary>
        public bool IsAdmin { get; set; }

        /// <summary>
        /// 部门编码
        /// </summary>
        public string? DeptCode { get; set; }
    }
}
